 

#import <UIKit/UIKit.h>
#import "DataObject.h"

//ftp 新增的部份
#import "S7FTPRequest.h"
//url
#import "DownloadData.h"

@protocol StockTableQuoteSetupDelgete;


@interface StockTableQuoteSetup : UIViewController<DownloadDataDelgete,UITableViewDataSource,UITableViewDelegate,UIPickerViewDelegate>{
	id <StockTableQuoteSetupDelgete> delegate;
    id delegate_UIPopoverController;     
    UITableView *myTable;
    UIPickerView *pick;
	NSMutableArray *mvarray;//mva	
	
	NSMutableArray *picka1;
	NSMutableArray *picka2;
	NSMutableArray *picka3;	
	
	NSMutableArray *download_data_obj;
	 
	//ftp 新增的部份	
	NSMutableArray *uploadpathfile_chiefox; //記錄上傳路徑與檔名	
	int ui_chiefox;
	
	NSMutableArray *uploadpathfile_xxtradexx; //記錄上傳路徑與檔名	
	int ui_xxtradexx;
	int ui_xxtradexx_url;	
	
	//表格 隨ftp上傳時改變標題內容
	NSString *upload_Tabel_Caption_FTP;
	NSString *upload_Tabel_Caption_HTTP; 	
    NSString *record_upload_type;
    
	//網路資料下載物件 url
	DownloadData *downloadobject;	
	id AppleDeglate;  
    
    //至yahoo取出資料的記憶體區
    NSMutableArray *code_array;
    NSMutableArray *name_array;
    NSMutableArray *type_array;
    NSMutableArray *industry_array;
    NSMutableArray *exchange_array;    
    
    NSString *http_upload_filename;
    
}
@property (nonatomic, assign) id <StockTableQuoteSetupDelgete> delegate;
@property (nonatomic, retain) id delegate_UIPopoverController;
@property(assign) id AppleDeglate;

-(id)initWithpicka1:(NSMutableArray *)apicka1 picka2:(NSMutableArray *)apicka2 picka3:(NSMutableArray *)apicka3 objecta:(NSMutableArray *)oba;
NSInteger comparator_Symbola_UP( DataObject *d1, DataObject *d2, void *context );

-(void)upload_action:(NSString *)upload_type;
-(void)getAlbumInfo;
-(void)getAlbumInfo_example;
//ftp 新增的部份
- (void)uploadFinished:(S7FTPRequest *)request;
- (void)uploadFailed:(S7FTPRequest *)request;
- (void)uploadWillStart:(S7FTPRequest *)request;
- (void)uploadBytesWritten:(S7FTPRequest *)request;
- (void)requestStatusChanged:(S7FTPRequest *)request;
-(void) upload_mutarray_file_path:(NSString *)filePaths server_path:(NSString *)serverpaths;
-(void) upload_mutarray_file_path_http1:(NSString *)filePaths ;
-(void) upload_mutarray_file_path_http2:(NSString *)filePaths;
-(void)onUploadDone:(id)non;
-(void)onUploadError:(id)non;
@end


@protocol StockTableQuoteSetupDelgete
- (void)aflipsideViewControllerDidFinish:(StockTableQuoteSetup *)controller identify:(NSString *)identfy;
@end